﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VK.Comm;
using VK.Casemeet.Members;

namespace VK.Casemeet.Web.Front
{
    public partial class ActiveEmailComplete : System.Web.UI.Page
    {
        public string strMessage = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            string code = Util.GetRouteDataString("code");

            MemberEntity member = MemberBLL.GetMemberByValidateCode(code);
            member.State = 2;
            if (MemberBLL.UpdateMember(member) > 0)
            {
                strMessage = "您的帐号已经激活成功：" + member.Email;
            }
            else
            {
                strMessage = "您的帐号激活失败！";
            }
        }
    }
}